package com.huaxia.service.update;

import com.huaxia.dao.update.UpdateYxAgentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangli 爱我华夏，爱我中华！
 * @date 2020/07/13 13:49
 */
@Service
public class UpdateYxAgentService {

    @Autowired
    private UpdateYxAgentDao updateYxAgentDao;

    public void updateYxAgent(){
        updateYxAgentDao.deleteOutWorker();
        updateYxAgentDao.insertWorker();
    }

    public void updateAllYxAgent(){
        updateYxAgentDao.deleteAllWorker();
        updateYxAgentDao.insertAllWorker();
    }
}
